﻿@model LetLord.ViewModels.QuickPropertySearchViewModel

@using (Ajax.BeginForm("QuickPropertySearch", "Search", FormMethod.Post,
                        new AjaxOptions
                        {
                            InsertionMode = InsertionMode.Replace,
                            HttpMethod = "POST",
                            UpdateTargetId = "quick-property-search-results"
                        }, new { @style = "margin:auto;" }))
{
    <table class="table pull-right quick-search">
        <tr>
            <td>@Html.Bootstrap().ControlGroup().DropDownListFor(x => x.County, new SelectList(LetLord.ViewModels.QuickPropertySearchViewModel.Counties)).Size(InputSize.Large)</td>
            <td>@Html.Bootstrap().ControlGroup().DropDownListFor(x => x.MinPrice, new SelectList(LetLord.ViewModels.QuickPropertySearchViewModel.Prices)).Size(InputSize.Medium).Label().ShowRequiredStar(false)</td>
            <td>@Html.Bootstrap().ControlGroup().DropDownListFor(x => x.MaxPrice, new SelectList(LetLord.ViewModels.QuickPropertySearchViewModel.Prices)).Size(InputSize.Medium).Label().ShowRequiredStar(false)</td>
            <td>@Html.Bootstrap().ControlGroup().DropDownListFor(x => x.DesiredNumBeds, new SelectList(LetLord.ViewModels.QuickPropertySearchViewModel.NumBeds)).Size(InputSize.Medium).Label().ShowRequiredStar(false)</td>
            <td>@Html.Bootstrap().SubmitButton().Size(ButtonSize.Large).Text("Search").Style(ButtonStyle.Inverse).HtmlAttributes(new { @id="btn-quick-search" })</td>
        </tr>
    </table>
}
